<template>
  <div class="order-bar">
    <div class="top">
      <div class="left">服务单号：{{ order }}</div>
      <div v-if="type" class="right">处理方式：{{ type }}</div>
      <div v-else class="right">制表人：{{ username }}</div>
    </div>
    <slot></slot>
  </div>
</template>

<script>
export default {
  props: {
    order: { type: String, default: '' },
    type: { type: String, default: '' },
    username: { type: String, default: '' },
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {
  },
  mounted() {
  },
  methods: {},
}
</script>

<style lang='less' scoped>
.order-bar{
  .top{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  padding: 14px 16px;
  color: #333;
  font-size: 14px;
  background: #fff;
  margin-bottom: 8px;
}
</style>
